<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>函数return的值</title>
</head>
<body>

<script>
    //一般方法默认return undefine
    function test() {
        console.log("一般方法默认return undefine");
    }
    console.log(test());

//    当构造函数时使用，return默认返回this
    function clother() {
        this.height = 100;
    }
    var tshart = new clother();
    console.log(tshart);
</script>
</body>
</html>